
import store from '../vuex'

//网站绝对路径配置
export let defaultPath = 'http://139.224.69.242:7070/switchMedia/default.json'

if(!uni.getStorageSync('default_path'))uni.setStorageSync('default_path',defaultPath)
defaultPath = uni.getStorageSync('default_path')

if(uni.getStorageSync('default_path').indexOf('mock') >= 0)store.commit('updateOnMockjs', true)

export let api = {
  getData: defaultPath, //加载数据
  
  throwAds: 'http://139.224.69.242:7070/switchMedia/des' //投放广告
}